<?php get_header(); ?>
<?php $options = get_option('blog_theme_options');?>
<!-- START #content -->
<div id="content" class="clearfix" role="main">
	<?php if ($options['breadcrumb_post'] == 1)  : ?>
		<?php if (function_exists('dimox_breadcrumbs')) dimox_breadcrumbs(); ?>
	<?php endif; ?>
	<!-- START LOOP -->	
	<?php if (have_posts()) : ?>
		<?php while (have_posts()) : the_post() ?>							
			<!-- START ARTICLE -->
			<article <?php post_class('entry clearfix'); ?>>
				<h1 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
				<ul class="entry-meta clearfix">
					<li class="entry-author"><a href="<?php echo get_author_posts_url(get_the_author_meta( 'ID' )); ?>"><?php the_author(); ?></a></li>
					<li class="entry-date"><?php the_time('jS F Y'); ?></li>
					<li class="entry-categories"><?php the_category(', '); ?></li>
					<li class="entry-tags"><?php the_tags('',', '); ?></li>
				</ul>
				<div class="meta-separator"></div>
				<div class="entry-content clearfix">
					<?php if ( has_post_thumbnail() ) { the_post_thumbnail(); } ?>																		
					<?php the_content(false); ?>
				</div>				
				<?php edit_post_link( __('[ویرایش نوشته]', 'framework')); ?>
			</article>					
			<?php if ($options['author_bio'] == 1)  : ?>
			<div class="author-separator"></div>
			<div class="author-bio clearfix">	
				<?php echo get_avatar( get_the_author_meta('ID'), 72 ); ?>
				<h4><a href="<?php echo get_author_posts_url(get_the_author_meta( 'ID' )); ?>"><?php echo get_the_author(); ?></a></h4>			
			   	<p><?php the_author_meta('description') ?></p>
			</div>	    
		<?php endif; ?>			
		<!-- END ARTICLE -->
		<?php comments_template(); ?>			
	<?php endwhile; ?>											
<?php endif ?>
<!-- END LOOP -->						
</div>
<!-- END #content -->
<?php blog_pagination(); ?>	
<?php get_footer(); ?> 